package com;

import java.awt.*;
import java.io.Reader;

/*
*
* 墙类
* */
public class Wall {
    int x,y,w,h;
    TankClient tc;

    public Wall(int x,int y, int w,int h, TankClient tc){
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
        this.tc = tc;
    }
    //画墙
    public void draw(Graphics g){
       g.fillRect(x,y,w,h);
    }
    //检测
    public Rectangle getRect() {
        return new Rectangle(x, y, w, h);
    }
}
